-- GENERATED SPELL FOR [Monnos the Elder] --


function spell0_6646(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6646', 548, 1)
end

function spell1_6646(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_6646', 664, 1)
end

function spell2_6646(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_6646', 5302, 1)
end

function Sorts_6646(pUnit, Event)
local choix_sorts_6646 = math.random(0, 2)
if choix_sorts_6646 == 0 then
pUnit:RegisterEvent('spell0_6646', 1, 1)
end
if choix_sorts_6646 == 1 then
pUnit:RegisterEvent('spell1_6646', 1, 1)
end
if choix_sorts_6646 == 2 then
pUnit:RegisterEvent('spell2_6646', 1, 1)
end
end

function mob6646_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6646', math.random(1500, 3000), 1)
end

function mob6646_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6646_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6646_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6646, 1, 'mob6646_Action')
RegisterUnitEvent(6646, 2, 'mob6646_Leave')
RegisterUnitEvent(6646, 3, 'mob6646_Kill')
RegisterUnitEvent(6646, 4, 'mob6646_Die')
